package com.nf;

public class Test3 {
    public static void main(String[] args) {
        Car car1 = Car.getInstance();

        Car car2 = Car.getInstance();

        Car car3 = Car.getInstance();


        car3.setName("大众");

        System.out.println(car1==car2);
        System.out.println(car1);
        System.out.println(car2);
        System.out.println(car3);

    }
}
